package com.dingreading.cloud.soms.service.impl;

import com.dingreading.cloud.soms.entity.StoreMenu;
import com.dingreading.cloud.soms.entity.table.StoreMenuTableDef;
import com.dingreading.cloud.soms.mapper.StoreMenuMapper;
import com.dingreading.cloud.soms.service.StoreMenuService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * 服务层实现。
 *
 * @author Administrator
 * @since 2024-09-13
 */
@Service
public class StoreMenuServiceImpl extends BaseServiceImpl<StoreMenuMapper, StoreMenu, StoreMenuTableDef> implements StoreMenuService {

    @Override
    protected StoreMenuTableDef getTable() {
        return StoreMenuTableDef.storeMenu;
    }

    @Resource
    private StoreMenuMapper storeMenuMapper;

    @Override
    public List<StoreMenu> listByRoleIdAndOperationType(Long roleId, String cooperationType, String operationType) {
        return storeMenuMapper.listByRoleIdAndOperationType(roleId, cooperationType, operationType);
    }

}
